package com.twu.biblioteca;

import java.io.PrintStream;

/**
 * Created by IntelliJ IDEA.
 * User: anubhav
 * Date: 1/7/14
 * Time: 2:07 AM
 * To change this template use File | Settings | File Templates.
 */
public class ProfileViewer implements Action {
    private User user;
    private PrintStream out;

    public ProfileViewer(User user,PrintStream out) {
        this.user = user;
        this.out = out;

    }

    @Override
    public void executeAction() {
        out.println("Library Number: " + user.getLibraryNumber());
        out.println("Name: " + user.getName());
        out.println("Email: " + user.getEmail());
        out.println("Phone Number: " + user.getPhoneNumber());

    }
}
